package com.xncoding.netty.socket.netty02;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

public class MyChannelInitializer extends ChannelInitializer<SocketChannel> {

    @Override
    protected void initChannel(SocketChannel channel) throws Exception {
        System.out.println("链接报告IP:" + channel.localAddress().getHostString()+":"+  channel.localAddress().getPort());
        //channel.pipeline().addLast(mychildHandler);
    }

}
